﻿namespace NetCore
{
    /// <summary>
    /// 系统常量
    /// </summary>
    public class NetCoreConsts
    {
        #region 默认长度
        public const int MaxLength32 = 32;
        public const int MaxLength64 = 64;
        public const int MaxLength128 = 128;
        public const int MaxLength256 = 256;
        public const int MaxLength512 = 512;
        #endregion

        #region 系统默认
        public const string AppName = "NetCore";

        public const string LocalizationSourceName = "NetCore";

        public const string ConnectionStringName = "Default";

        public const bool MultiTenancyEnabled = true;//禁用多租户false

        #endregion

        #region 默认格式

        public const string DateFormatString = "yyyy/MM/dd";
        public const string DateTimeFormatString = "yyyy/MM/dd hh:mm:ss";

        #endregion

        #region 定义常量
        /// <summary>
        /// Header OrganizationId属性常量
        /// </summary>
        public const string HeaderOrganizationId = "OrganizationId";
        /// <summary>
        /// Header CompanyId属性常量
        /// </summary>
        public const string HeaderCompanyId = "CompanyId";
        /// <summary>
        /// Header ProjectId属性常量
        /// </summary>
        public const string HeaderProjectId = "ProjectId";
        #endregion

        #region 缓存组
        /// <summary>
        /// 个性化验证/验证码缓存组
        /// </summary>
        public const string PersonalCaches = "PersonalCaches";
        /// <summary>
        /// UserLocker缓存组
        /// </summary>
        public const string UserLocker = "UserLocker";
        /// <summary>
        /// 省市区列表信息缓存组 
        /// </summary>
        public const string LocationArea = "LocationArea";
        /// <summary>
        /// UserUnReadNotify缓存组
        /// </summary>
        public const string UserUnReadNotify = "UserUnReadNotify";
        #endregion
    }
}
